package nicg.st.service.evaldataenterservice;

public class Calculation22 implements Calculation {
    private double T;
    private double T0;
    private double t;
    private double at;
    private double Tm;

    @Override
    public double calculate() {
        if(T-T0<t){
            return 100;
        }else{
            return 100 - at*(T-T0);
        }
    }

    public double getT() {
        return T;
    }

    public void setT(double t) {
        T = t;
    }

    public double getAt() {
        return at;
    }

    public void setAt(double at) {
        this.at = at;
    }

    public double getTm() {
        return Tm;
    }

    public void setTm(double tm) {
        Tm = tm;
    }

    public double getT0() {
        return T0;
    }

    public void setT0(double t0) {
        T0 = t0;
    }
}
